﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class MemberIntegralConfig : EntityTypeConfiguration<MemberIntegral>
    {
        public MemberIntegralConfig()
        {
            ToTable("Himall_MemberIntegral");
            Property(item => item.UserName).HasColumnType("varchar").HasMaxLength(200);          
            HasRequired(x => x.Himall_Members).WithMany(x => x.Himall_MemberIntegral).HasForeignKey(x => x.MemberId);
        }
    }
}
